<html>
<body>

<?php 

$database_create_file = "table_definitions.txt";
$max_runtime = 6000;


echo "Maximum script runtime set to ".$max_runtime." seconds.<BR>";
set_time_limit($max_runtime);
error_reporting('IGNORE_REPEATED_ERRORS');


$conn = mysql_connect ("localhost", "root", "") or die ('Error: ' . mysql_error());


$handle = @fopen($database_create_file, "r");
if ($handle) {
        $source = null;
        $buftok[] = null;
	while (!feof($handle)){
                $select_results = null;
		$bufferin = fgets($handle);
                $bufferin = trim($bufferin);
                if (strlen($bufferin)>0){
			mysql_query($bufferin);	
			echo $bufferin."<BR>";
                }
	}

     fclose($handle);   
}

echo "Empty database creation complete.<BR>";

?><BR>

</body>
</html>